/*
 * @Description: 订单接口
 * @Author: lwx
 * @Date: 2022-06-14 16:57:21
 * @LastEditors: lwx
 * @LastEditTime: 2023-04-12 11:29:44
 */
import request from '@/utils/request'

/* 获取订单列表 */
export function orderList(data) {
    return request({
        url: '/order',
        method: 'GET',
        params: data
    })
}

/* 添加订单 */
export function addOrder(data) {
    return request({
        url: '/order',
        method: 'POST',
        data
    })
}
/* 修改订单 */
export function updateOrder(data) {
    return request({
        url: '/order',
        method: 'PUT',
        data
    })
}

/* 删除订单 */
export function removeOrder(order_id) {
    return request({
        url: '/order',
        method: 'DELETE',
        data: {
            order_id
        }
    })
}

/* 获取订单编号列表 */
export function orderNoList() {
    return request({
        url: '/order/no',
        method: 'GET',
    })
}

/* 逾期订单 */
export function orderTimeOut() {
    return request({
        url: '/order/timeout',
        method: 'GET',
    })
}